﻿using System;
using System.Net;
using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class WeaponSpeed
    {
        #region Fields
        private string _hastePercentField;
        private string _hasteRatingField;
        private string _valueField;
        #endregion
        #region Properties
        public string HastePercent
        {
            get
            {
                return this._hastePercentField;
            }
            set
            {
                this._hastePercentField = value;
            }
        }

        public string HasteRating
        {
            get
            {
                return this._hasteRatingField;
            }
            set
            {
                this._hasteRatingField = value;
            }
        }

        public string Value
        {
            get
            {
                return this._valueField;
            }
            set
            {
                this._valueField = value;
            }
        }
        #endregion
        #region Constructor
        public WeaponSpeed(XElement element)
        {
            HastePercent = element.GetAttributeValue("hastePercent");
            HasteRating = element.GetAttributeValue("hasteRating");
            Value = element.GetAttributeValue("value");
        }
        #endregion
    }
}
